<?php
use yii\helpers\Html;
use yii\helpers\Url;

use common\models\MktPostResponse;
?>
<div href="" class="weui_media_box weui_media_appmsg">
    <div class="weui_media_hd">
        <a href="<?= Url::to(['market-profile', 'id'=>$model->user->id]); ?>">
        <img style="margin-top: -15px;" class="weui_media_appmsg_thumb" src="<?php echo \common\wosotech\Util::getWxUserHeadimgurl($model->user->theHeadimgurl, 46); ?>" alt="">
        </a>
    </div>
    <div class="weui_media_box weui_media_text" style="width:100%;">
        <div onclick="gotoProfile(<?php echo $model->user->id; ?>)" class="weui_media_title"><span class="name" style="color:#1e1e1e !important;"><?php echo $model->user->theName; ?></span><?php echo $model->user->theCompany; ?><?php echo $model->user->theDuty; ?></div>
        <div style="float:right;">
            <input onclick="ignorePostResponse(<?php echo $model->id; ?>); return false;" style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_default" value="忽略"></input>

            <?php if (!$me->isMyFriend($model->user->id)): ?> 
                <input onclick="applyAddFriend(<?php echo $model->user->id; ?>); return false;" style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_primary" value="加好友"></input>
            <?php endif; ?>

        </div>
        
        <div class="weui_media_desc" style="color:#bbbfb2;padding-top:0px;line-height:20px;height:20px;margin-bottom: 8px;"><?php echo date("m-d",strtotime($model->create_time)); ?> 响应</div>
        <div class="weui_media_title"><span class="name" style="color:#666666 !important;margin-top: 2px;"><?php echo $model->post->theTitle; ?></span></div>
    </div>
</div>

<?php
/*
`$model`: mixed, the data model
`$key`: mixed, the key value associated with the data item
`$index`: integer, the zero-based index of the data item in the items array returned by [[dataProvider]].
`$widget`: ListView, this widget instance

		<a href="" class="weui_media_box weui_media_appmsg">
			<div class="weui_media_hd">
				<img style="margin-top: -15px;" class="weui_media_appmsg_thumb" src="resources/images/avatar/tx.jpg" alt="">
			</div>
			<div class="weui_media_box weui_media_text" style="width:100%;">
				<div onclick="gotoManDetail(1)" class="weui_media_title"><span class="name" style="color:#1e1e1e !important;">肖丽芳</span>天才宝贝光谷店中心主任</div>
				<div style="float:right;">
					<input style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_default" value="忽略"></input>
					<input style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_primary" value="加好友"></input>
				</div>
				
				<div class="weui_media_desc" style="color:#bbbfb2;padding-top:0px;line-height:20px;height:20px;margin-bottom: 8px;">8-21 响应</div>
				<div class="weui_media_title"><span class="name" style="color:#666666 !important;margin-top: 2px;">招聘市场经理</span></div>
			</div>
		</a>

*/